package _13this调用本类构造方法;

public class Demo {

    private String name;
    private String sex;
    private int age;

    public Demo() {
    }

    public Demo(String name, String sex) {
        this.name = name;
        this.sex = sex;
    }

    public Demo(String name, String sex, int age) {
        this(name,sex);
        this.age = age;
    }
}
